﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using Volo.Abp.Domain.Entities;

namespace HCMS.Entities.Base
{
    /// <summary>
    /// 系统 配置
    /// </summary>
    [Table("system_config")]
    public class SystemConfig : Entity<int>
    {
        /// <summary>
        /// Id
        /// </summary>
        public new int Id { get; set; }

        /// <summary>
        /// 创建 时间
        /// </summary>
        [Column("create_time")]
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 创建 人
        /// </summary>
        [Column("create_user")]
        public string CreateUser { get; set; } = "";

        /// <summary>
        /// 更新 时间
        /// </summary>
        [Column("update_time")]
        public DateTime UpdateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新 人
        /// </summary>
        [Column("update_user")]
        public string UpdateUser { get; set; } = "";

        /// <summary>
        /// 状态
        /// </summary>
        [Column("status")]
        public int Status { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        [Column("title")]
        public string Title { get; set; } = "";

        /// <summary>
        /// 配置 键
        /// </summary>
        [Column("config_key")]
        public string ConfigKey { get; set; } = "";

        /// <summary>
        /// 配置 值
        /// </summary>
        [Column("config_value")]
        public string ConfigValue { get; set; } = "";

        /// <summary>
        /// 备注 说明
        /// </summary>
        [Column("remark")]
        public string Remark { get; set; } = "";
    }
}
